"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("./index");
const fs = require("fs");
let config = {
    db_host: "127.0.0.1",
    db_port: 3306,
    db_user: "root",
    db_password: "111111",
    target_host: '127.0.0.1',
    gatewayPort: 2857,
    gatewayBindIP: "127.0.0.1",
    logLevel: null,
};
if (fs.existsSync("config.json")) {
    let outerConfig = JSON.parse(fs.readFileSync('config.json', 'utf8'));
    Object.assign(config, outerConfig);
}
index_1.start(config);
